package java基础.struct;

/**
 * @author IT_Jay
 * @date 2022/1/4 18:29
 */

public class Demo17 {
    public static void main(String[] args) {
        //break跳出循环
        int i = 0;
        while (i<100){
            i++;
            System.out.print(i+" ");
            if (i==30)
            break;
        }
        System.out.println("break跳出循环，并不是结束程序！！");

        //continue是符合条件时跳出一次循环
        int j = 0;
        while (j<100){
            j++;
            if (j%10==0){
                System.out.println();
                continue;
            }
            System.out.print(j+"\t");
        }
    }
}
